﻿using System;
using System.Collections.Generic;

namespace BarManager.Core.BusinessRules.Interfaces.Validator
{
    public interface IValidator<TEntity> where TEntity : class
    {
        bool IsValid(TEntity entity, ValidatorType validatorType);
        IEnumerable<string> BrokenRules();        
    }

    public enum ValidatorType : short
    {
        Add = 1,
        Update = 2,
        Delete = 3,
        Select = 4
    }
}
